﻿using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace BlueFox.Ucpaas
{
    public static class UseYZXSmsExtend
    {
        public static IServiceCollection UseYZXSms(this IServiceCollection services,
            IConfigurationSection configurationSection)
        {
            var config = configurationSection.Get<Config>();
            HttpUtil.Appid = config.Appid;
            HttpUtil.Sid = config.Sid;
            HttpUtil.Token = config.Token;
            return services;
        }
    }
}
